﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace Petra.Gis.RenderingServices.PlanarBase 
{
  /// <summary>
  /// holds all informations about display style of drawn geometry
  /// Some style items can be outputFormat specific but major is common to <c>PlanarMap</c>s
  /// to create style xml syntax is used and RenderStyle is XMLSerializeable
  /// </summary>
  [XmlRootAttribute("Style", Namespace = "http://www.petra.gis", IsNullable = false)]
  public class RenderStyle
  {

    protected Dictionary<string, object> _styleComponents;


    /// <summary>
    /// xaml constructor
    /// </summary>
    public RenderStyle()
    {
      _styleComponents = new Dictionary<string, object>();
    }




    public RenderStyle(string fileName)
    { 
    
    }




    public object this[string itemName]
    {
      get{return _styleComponents[itemName];}
    }




    public Dictionary<string, object> StyleComponents
    {
      get { return _styleComponents; }
    }




  }
}
